function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 80,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '科目名称',
      dataIndex: 'subjectCode',
      align: 'center',
      width: 300,
      scopedSlots: { customRender: 'subjectCode' }
    },
    {
      title: '科目编号',
      dataIndex: 'subjectName',
      align: 'center',
      width: 300,
      scopedSlots: { customRender: 'subjectName' }
    },
    {
      title: '进项借方总额',
      dataIndex: 'rdMoney',
      align: 'center',
      scopedSlots: { customRender: 'rdMoney' }
    },
    {
      title: '进项贷方总额',
      dataIndex: 'rcMoney',
      align: 'center',
    },
    {
      title: '销项借方总额',
      dataIndex: 'xrdMoney',
      align: 'center',
    },
    {
      title: '销项贷方总额',
      dataIndex: 'xrcMoney',
      align: 'center',
    },
    {
      title: '附件数',
      dataIndex: 'attachments',
      align: 'center',
    },
  ]
  return cols
}

export default columns
